

#include "stdafx.h"
#include "CChannel.h"


VOID CChannel::UpdateParameter(string f_strParamId,INT32 f_iParamValue)
{
	m_paramMap[f_strParamId] = f_iParamValue; 
	list<string>::iterator itr = m_lstKeys.begin();

	BOOL l_bMatched = FALSE;
	for(;itr != m_lstKeys.end();++itr)
	{
		if(0 == f_strParamId.compare(*itr))
		{
			l_bMatched = TRUE;
		}
	}

	if(FALSE == l_bMatched)
	{
		m_lstKeys.push_back(f_strParamId);
	}
}